import 'package:flutter_app/generated/json/base/json_convert_content.dart';
import 'package:flutter_app/bean/group_task_detail_entity.dart';
import 'package:flutter_app/bean/file_path_entity.dart';


GroupTaskDetailEntity $GroupTaskDetailEntityFromJson(Map<String, dynamic> json) {
	final GroupTaskDetailEntity groupTaskDetailEntity = GroupTaskDetailEntity();
	final String? taskId = jsonConvert.convert<String>(json['taskId']);
	if (taskId != null) {
		groupTaskDetailEntity.taskId = taskId;
	}
	final String? groupId = jsonConvert.convert<String>(json['groupId']);
	if (groupId != null) {
		groupTaskDetailEntity.groupId = groupId;
	}
	final String? taskTitle = jsonConvert.convert<String>(json['taskTitle']);
	if (taskTitle != null) {
		groupTaskDetailEntity.taskTitle = taskTitle;
	}
	final String? startTime = jsonConvert.convert<String>(json['startTime']);
	if (startTime != null) {
		groupTaskDetailEntity.startTime = startTime;
	}
	final String? endTime = jsonConvert.convert<String>(json['endTime']);
	if (endTime != null) {
		groupTaskDetailEntity.endTime = endTime;
	}
	final String? taskStatus = jsonConvert.convert<String>(json['taskStatus']);
	if (taskStatus != null) {
		groupTaskDetailEntity.taskStatus = taskStatus;
	}
	final String? collectId = jsonConvert.convert<String>(json['collectId']);
	if (collectId != null) {
		groupTaskDetailEntity.collectId = collectId;
	}
	final String? areaId = jsonConvert.convert<String>(json['areaId']);
	if (areaId != null) {
		groupTaskDetailEntity.areaId = areaId;
	}
	final String? isLimit = jsonConvert.convert<String>(json['isLimit']);
	if (isLimit != null) {
		groupTaskDetailEntity.isLimit = isLimit;
	}
	final String? writeAuth = jsonConvert.convert<String>(json['writeAuth']);
	if (writeAuth != null) {
		groupTaskDetailEntity.writeAuth = writeAuth;
	}
	final GroupTaskDetailCollectGroupVO? collectGroupVO = jsonConvert.convert<GroupTaskDetailCollectGroupVO>(json['collectGroupVO']);
	if (collectGroupVO != null) {
		groupTaskDetailEntity.collectGroupVO = collectGroupVO;
	}
	final List<GroupTaskDetailProblemSubmitList>? problemSubmitList = jsonConvert.convertListNotNull<GroupTaskDetailProblemSubmitList>(json['problemSubmitList']);
	if (problemSubmitList != null) {
		groupTaskDetailEntity.problemSubmitList = problemSubmitList;
	}
	final String? memberStatus = jsonConvert.convert<String>(json['memberStatus']);
	if (memberStatus != null) {
		groupTaskDetailEntity.memberStatus = memberStatus;
	}
	final String? memberRole = jsonConvert.convert<String>(json['memberRole']);
	if (memberRole != null) {
		groupTaskDetailEntity.memberRole = memberRole;
	}
	return groupTaskDetailEntity;
}

Map<String, dynamic> $GroupTaskDetailEntityToJson(GroupTaskDetailEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['taskId'] = entity.taskId;
	data['groupId'] = entity.groupId;
	data['taskTitle'] = entity.taskTitle;
	data['startTime'] = entity.startTime;
	data['endTime'] = entity.endTime;
	data['taskStatus'] = entity.taskStatus;
	data['collectId'] = entity.collectId;
	data['areaId'] = entity.areaId;
	data['isLimit'] = entity.isLimit;
	data['writeAuth'] = entity.writeAuth;
	data['collectGroupVO'] = entity.collectGroupVO?.toJson();
	data['problemSubmitList'] =  entity.problemSubmitList?.map((v) => v.toJson()).toList();
	data['memberStatus'] = entity.memberStatus;
	data['memberRole'] = entity.memberRole;
	return data;
}

GroupTaskDetailCollectGroupVO $GroupTaskDetailCollectGroupVOFromJson(Map<String, dynamic> json) {
	final GroupTaskDetailCollectGroupVO groupTaskDetailCollectGroupVO = GroupTaskDetailCollectGroupVO();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		groupTaskDetailCollectGroupVO.id = id;
	}
	final String? collectId = jsonConvert.convert<String>(json['collectId']);
	if (collectId != null) {
		groupTaskDetailCollectGroupVO.collectId = collectId;
	}
	final String? areaId = jsonConvert.convert<String>(json['areaId']);
	if (areaId != null) {
		groupTaskDetailCollectGroupVO.areaId = areaId;
	}
	final String? areaName = jsonConvert.convert<String>(json['areaName']);
	if (areaName != null) {
		groupTaskDetailCollectGroupVO.areaName = areaName;
	}
	final String? groupName = jsonConvert.convert<String>(json['groupName']);
	if (groupName != null) {
		groupTaskDetailCollectGroupVO.groupName = groupName;
	}
	final String? status = jsonConvert.convert<String>(json['status']);
	if (status != null) {
		groupTaskDetailCollectGroupVO.status = status;
	}
	final String? grade = jsonConvert.convert<String>(json['grade']);
	if (grade != null) {
		groupTaskDetailCollectGroupVO.grade = grade;
	}
	final List<GroupTaskDetailCollectGroupVOGroupMemberVOList>? groupMemberVOList = jsonConvert.convertListNotNull<GroupTaskDetailCollectGroupVOGroupMemberVOList>(json['groupMemberVOList']);
	if (groupMemberVOList != null) {
		groupTaskDetailCollectGroupVO.groupMemberVOList = groupMemberVOList;
	}
	final GroupTaskDetailCollectGroupVORouteVO? routeVO = jsonConvert.convert<GroupTaskDetailCollectGroupVORouteVO>(json['routeVO']);
	if (routeVO != null) {
		groupTaskDetailCollectGroupVO.routeVO = routeVO;
	}
	return groupTaskDetailCollectGroupVO;
}

Map<String, dynamic> $GroupTaskDetailCollectGroupVOToJson(GroupTaskDetailCollectGroupVO entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['collectId'] = entity.collectId;
	data['areaId'] = entity.areaId;
	data['areaName'] = entity.areaName;
	data['groupName'] = entity.groupName;
	data['status'] = entity.status;
	data['grade'] = entity.grade;
	data['groupMemberVOList'] =  entity.groupMemberVOList?.map((v) => v.toJson()).toList();
	data['routeVO'] = entity.routeVO?.toJson();
	return data;
}

GroupTaskDetailCollectGroupVOGroupMemberVOList $GroupTaskDetailCollectGroupVOGroupMemberVOListFromJson(Map<String, dynamic> json) {
	final GroupTaskDetailCollectGroupVOGroupMemberVOList groupTaskDetailCollectGroupVOGroupMemberVOList = GroupTaskDetailCollectGroupVOGroupMemberVOList();
	final String? userId = jsonConvert.convert<String>(json['userId']);
	if (userId != null) {
		groupTaskDetailCollectGroupVOGroupMemberVOList.userId = userId;
	}
	final String? userName = jsonConvert.convert<String>(json['userName']);
	if (userName != null) {
		groupTaskDetailCollectGroupVOGroupMemberVOList.userName = userName;
	}
	final String? memberRole = jsonConvert.convert<String>(json['memberRole']);
	if (memberRole != null) {
		groupTaskDetailCollectGroupVOGroupMemberVOList.memberRole = memberRole;
	}
	final String? writeAuth = jsonConvert.convert<String>(json['writeAuth']);
	if (writeAuth != null) {
		groupTaskDetailCollectGroupVOGroupMemberVOList.writeAuth = writeAuth;
	}
	final String? collectId = jsonConvert.convert<String>(json['collectId']);
	if (collectId != null) {
		groupTaskDetailCollectGroupVOGroupMemberVOList.collectId = collectId;
	}
	final String? groupId = jsonConvert.convert<String>(json['groupId']);
	if (groupId != null) {
		groupTaskDetailCollectGroupVOGroupMemberVOList.groupId = groupId;
	}
	final String? status = jsonConvert.convert<String>(json['status']);
	if (status != null) {
		groupTaskDetailCollectGroupVOGroupMemberVOList.status = status;
	}
	final String? updateTime = jsonConvert.convert<String>(json['updateTime']);
	if (updateTime != null) {
		groupTaskDetailCollectGroupVOGroupMemberVOList.updateTime = updateTime;
	}
	final String? hm = jsonConvert.convert<String>(json['hm']);
	if (hm != null) {
		groupTaskDetailCollectGroupVOGroupMemberVOList.hm = hm;
	}
	final String? userIdList = jsonConvert.convert<String>(json['userIdList']);
	if (userIdList != null) {
		groupTaskDetailCollectGroupVOGroupMemberVOList.userIdList = userIdList;
	}
	return groupTaskDetailCollectGroupVOGroupMemberVOList;
}

Map<String, dynamic> $GroupTaskDetailCollectGroupVOGroupMemberVOListToJson(GroupTaskDetailCollectGroupVOGroupMemberVOList entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['userId'] = entity.userId;
	data['userName'] = entity.userName;
	data['memberRole'] = entity.memberRole;
	data['writeAuth'] = entity.writeAuth;
	data['collectId'] = entity.collectId;
	data['groupId'] = entity.groupId;
	data['status'] = entity.status;
	data['updateTime'] = entity.updateTime;
	data['hm'] = entity.hm;
	data['userIdList'] = entity.userIdList;
	return data;
}

GroupTaskDetailCollectGroupVORouteVO $GroupTaskDetailCollectGroupVORouteVOFromJson(Map<String, dynamic> json) {
	final GroupTaskDetailCollectGroupVORouteVO groupTaskDetailCollectGroupVORouteVO = GroupTaskDetailCollectGroupVORouteVO();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		groupTaskDetailCollectGroupVORouteVO.id = id;
	}
	final String? collectId = jsonConvert.convert<String>(json['collectId']);
	if (collectId != null) {
		groupTaskDetailCollectGroupVORouteVO.collectId = collectId;
	}
	final String? areaName = jsonConvert.convert<String>(json['areaName']);
	if (areaName != null) {
		groupTaskDetailCollectGroupVORouteVO.areaName = areaName;
	}
	final String? orderBy = jsonConvert.convert<String>(json['orderBy']);
	if (orderBy != null) {
		groupTaskDetailCollectGroupVORouteVO.orderBy = orderBy;
	}
	final List<GroupTaskDetailCollectGroupVORouteVOOrganVOList>? organVOList = jsonConvert.convertListNotNull<GroupTaskDetailCollectGroupVORouteVOOrganVOList>(json['organVOList']);
	if (organVOList != null) {
		groupTaskDetailCollectGroupVORouteVO.organVOList = organVOList;
	}
	return groupTaskDetailCollectGroupVORouteVO;
}

Map<String, dynamic> $GroupTaskDetailCollectGroupVORouteVOToJson(GroupTaskDetailCollectGroupVORouteVO entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['collectId'] = entity.collectId;
	data['areaName'] = entity.areaName;
	data['orderBy'] = entity.orderBy;
	data['organVOList'] =  entity.organVOList?.map((v) => v.toJson()).toList();
	return data;
}

GroupTaskDetailCollectGroupVORouteVOOrganVOList $GroupTaskDetailCollectGroupVORouteVOOrganVOListFromJson(Map<String, dynamic> json) {
	final GroupTaskDetailCollectGroupVORouteVOOrganVOList groupTaskDetailCollectGroupVORouteVOOrganVOList = GroupTaskDetailCollectGroupVORouteVOOrganVOList();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		groupTaskDetailCollectGroupVORouteVOOrganVOList.id = id;
	}
	final String? collectId = jsonConvert.convert<String>(json['collectId']);
	if (collectId != null) {
		groupTaskDetailCollectGroupVORouteVOOrganVOList.collectId = collectId;
	}
	final String? areaId = jsonConvert.convert<String>(json['areaId']);
	if (areaId != null) {
		groupTaskDetailCollectGroupVORouteVOOrganVOList.areaId = areaId;
	}
	final String? orgId = jsonConvert.convert<String>(json['orgId']);
	if (orgId != null) {
		groupTaskDetailCollectGroupVORouteVOOrganVOList.orgId = orgId;
	}
	final String? orgName = jsonConvert.convert<String>(json['orgName']);
	if (orgName != null) {
		groupTaskDetailCollectGroupVORouteVOOrganVOList.orgName = orgName;
	}
	final String? orderBy = jsonConvert.convert<String>(json['orderBy']);
	if (orderBy != null) {
		groupTaskDetailCollectGroupVORouteVOOrganVOList.orderBy = orderBy;
	}
	return groupTaskDetailCollectGroupVORouteVOOrganVOList;
}

Map<String, dynamic> $GroupTaskDetailCollectGroupVORouteVOOrganVOListToJson(GroupTaskDetailCollectGroupVORouteVOOrganVOList entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['collectId'] = entity.collectId;
	data['areaId'] = entity.areaId;
	data['orgId'] = entity.orgId;
	data['orgName'] = entity.orgName;
	data['orderBy'] = entity.orderBy;
	return data;
}

GroupTaskDetailProblemSubmitList $GroupTaskDetailProblemSubmitListFromJson(Map<String, dynamic> json) {
	final GroupTaskDetailProblemSubmitList groupTaskDetailProblemSubmitList = GroupTaskDetailProblemSubmitList();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		groupTaskDetailProblemSubmitList.id = id;
	}
	final String? groupId = jsonConvert.convert<String>(json['groupId']);
	if (groupId != null) {
		groupTaskDetailProblemSubmitList.groupId = groupId;
	}
	final String? orgId = jsonConvert.convert<String>(json['orgId']);
	if (orgId != null) {
		groupTaskDetailProblemSubmitList.orgId = orgId;
	}
	final String? orgName = jsonConvert.convert<String>(json['orgName']);
	if (orgName != null) {
		groupTaskDetailProblemSubmitList.orgName = orgName;
	}
	final String? content = jsonConvert.convert<String>(json['content']);
	if (content != null) {
		groupTaskDetailProblemSubmitList.content = content;
	}
	final String? status = jsonConvert.convert<String>(json['status']);
	if (status != null) {
		groupTaskDetailProblemSubmitList.status = status;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		groupTaskDetailProblemSubmitList.createTime = createTime;
	}
	final String? isSelf = jsonConvert.convert<String>(json['isSelf']);
	if (isSelf != null) {
		groupTaskDetailProblemSubmitList.isSelf = isSelf;
	}
	final String? problemCode = jsonConvert.convert<String>(json['problemCode']);
	if (problemCode != null) {
		groupTaskDetailProblemSubmitList.problemCode = problemCode;
	}
	final String? problemCodeName = jsonConvert.convert<String>(json['problemCodeName']);
	if (problemCodeName != null) {
		groupTaskDetailProblemSubmitList.problemCodeName = problemCodeName;
	}
	final String? uploadState = jsonConvert.convert<String>(json['uploadState']);
	if (uploadState != null) {
		groupTaskDetailProblemSubmitList.uploadState = uploadState;
	}
	final String? uploadProgress = jsonConvert.convert<String>(json['uploadProgress']);
	if (uploadProgress != null) {
		groupTaskDetailProblemSubmitList.uploadProgress = uploadProgress;
	}
	final List<FilePathEntity>? fileList = jsonConvert.convertListNotNull<FilePathEntity>(json['fileList']);
	if (fileList != null) {
		groupTaskDetailProblemSubmitList.fileList = fileList;
	}
	return groupTaskDetailProblemSubmitList;
}

Map<String, dynamic> $GroupTaskDetailProblemSubmitListToJson(GroupTaskDetailProblemSubmitList entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['groupId'] = entity.groupId;
	data['orgId'] = entity.orgId;
	data['orgName'] = entity.orgName;
	data['content'] = entity.content;
	data['status'] = entity.status;
	data['createTime'] = entity.createTime;
	data['isSelf'] = entity.isSelf;
	data['problemCode'] = entity.problemCode;
	data['problemCodeName'] = entity.problemCodeName;
	data['uploadState'] = entity.uploadState;
	data['uploadProgress'] = entity.uploadProgress;
	data['fileList'] =  entity.fileList?.map((v) => v.toJson()).toList();
	return data;
}